package cn.bdqn.layui.mapper;

import cn.bdqn.layui.entity.Order;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderMapper {

    int addOrder(Order order);

    int updateOrderByBangkeId(Integer bangkeId,Integer id);

    List<Order> findOrderAll(@Param("id") Integer id, @Param("userId") Integer userId, @Param("productName") String productName, @Param("page") Integer page, @Param("pageSize") Integer pageSize);

    int findOrderCount(@Param("id") Integer id, @Param("userId") Integer userId, @Param("productName") String productName);

    Order findOrderById(Integer id);

}
